Undervoltage lockout circuit with sleep pin

ABSTRACT

A sleep switch connected to a ramp pin, an undervoltage lockout circuit and a hysteretic differential comparator for use in the undervoltage lockout circuit are disclosed. An integrated circuit has a comparator that receives a voltage from the ramp pin which it compares with a control voltage. The sleep switch connected to the ramp pin is activated when the ramp pin is below a predetermined voltage threshold at which point it puts the integrated circuit into a low power consumption sleep mode. The undervoltage lockout circuit includes a detection leg connected between the supply terminal and ground. A current supply is enabled when the voltage across a resistive portion of a detection leg rises above a first threshold. A differential comparator is responsive to the detection voltage for enabling the current supply. The differential comparator may include three transistors arranged to provide first and second detection thresholds so as to establish a hysteresis.

BACKGROUND OF THE INVENTION

The present application claims priority from U.S. Provisional patent application No. 60/002,941, filed Aug. 30, 1995, U.S. Provisional patent application No. 60/007,766, filed Nov. 30, 1995 and U.S. Provisional patent application No. 60/012,754, filed Mar. 4, 1996. The full disclosures of all of the aforementioned provisional applications are hereby incorporated by reference herein.

The present invention relates to an undervoltage lockout circuit with a sleep terminal, in particular, a multi-function sleep pin.

An undervoltage lockout circuit is a circuit which keeps the rest of the circuitry of an integrated circuit disabled until the power supply reaches a specified level. Ideally, an undervoltage lockout circuit would keep the integrated circuit supply current at zero until the specified voltage is reached. A conventional undervoltage lockout circuit is shown in FIG. 3. The circuit uses a simple resistor divider for providing a measure of the supply voltage to a comparator 104 which compares that level to a band gap reference 102. The enable threshold is reached when Vcc=VBG (R17+R18+R19)/R19. Upon enabling the integrated circuit, a current supply transistor 106 is turned on. With the integrated circuit enabled, a transistor 100, having a base connected to the base of the current supply transistor 106, provides a short around resistor R17. Therefore, the disable threshold is reached when Vcc=VBG (R18+R19)/R19. The disable threshold is lower than the enable threshold thereby providing hysteresis which avoids jitter around the threshold. The band gap reference 102 is connected to the voltage supply and draws current even when the supply voltage is at a low level. It would be preferable, however, to keep the current drain on the supply terminal very low until the undervoltage lockout enable threshold has been reached.

Another distinct method for reducing the current drain of an integrated circuit is the provision of a sleep pin. When a circuit is in sleep mode, the integrated circuit draws at most a very small microcurrent. It is further desirable in an integrated circuit to reduce pin count so that the circuit may be sold in a smaller and less expensive package. Therefore, the ability to provide additional functions on any of the limited number of pins in a particular package is advantageous.

SUMMARY OF THE INVENTION

In accordance with one embodiment of the invention, a pin is provided on an integrated circuit which functions both as the ramp pin and the sleep pin. The ramp pin is intended for connection to an external capacitor. Within the circuit, a comparator receives a voltage from the ramp pin for making a comparison with a control voltage. A current source within the circuit is used for charging the external capacitor through the ramp pin. The circuit further includes a sleep switch connected to the ramp pin which is activated when the ramp pin falls below a predetermined voltage threshold for entering the sleep mode. Under normal operation, the external capacitor is being charged and discharged within a voltage range above the predetermined voltage threshold. When the ramp pin falls below the predetermined voltage threshold, the switch disables the current source to the ramp pin and, moreover, disables the entire integrated circuit.

The sleep switch may be a transistor which is normally reverse biased while the external capacitor is charging and discharging. A discharge clamp may be provided in connection with the ramp pin to prevent the external capacitor from discharging below a minimum reference voltage in normal operation.

In accordance with another embodiment of the invention, a sleep pin is provided for use in conjunction with an undervoltage lockout circuit. The undervoltage lockout circuit enables the integrated circuit when the supply voltage rises above an enable threshold and disables the integrated circuit when the supply voltage falls below a disable threshold. Hysteresis may be provided in the undervoltage lockout circuit by making the disable threshold lower than the enable threshold. A transistor is provided with its collector connected to the undervoltage lockout circuit, an emitter coupled through a semiconductor junction to ground, and its base coupled to the voltage supply. A second semiconductor junction is connected between the base of the transistor and a sleep pin such that when the sleep pin is forced below a predetermined threshold, current is prevented from flowing through the collector of the transistor so as to disable the undervoltage lockout circuit thereby disabling the entire integrated circuit. The integrated circuit remains off until the undervoltage lockout circuit is enabled and the voltage supply exceeds the enable threshold.

The undervoltage lockout circuit of an embodiment of the invention includes a detection leg connected to the supply terminal. The integrated circuit also includes a current supply, connected to the supply terminal, for permitting current flow to the rest of the integrated circuit. A differential comparator is responsive to a detection voltage across a resistive portion of the detection leg for enabling the current supply when the detection voltage rises past a first threshold. The differential comparator may be provided with hysteresis so that it disables the current supply when the detection voltage falls below a second threshold lower than the first threshold. In accordance with an embodiment of the invention, the difference between the first and second thresholds is a function of the relative emitter areas of the transistors forming the comparator. Hysteresis is achieved in the differential comparator by providing a Schmitt trigger circuit for steering current to three transistors with common emitters. The Schmitt trigger provides a first current path for one of the three transistors and a second current path for the second of the three transistors. The third transistor receives current through one of the two current paths when the integrated circuit is enabled and through the other current path when the integrated circuit is disabled. As the current to the third transistor is shifted from one path to the other, a diode in the detection leg is switched in or out of the detection leg. This diode also contributes to the difference between the enable and disable thresholds. The contribution from the diode has a negative temperature coefficient whereas the contribution from the comparator and Schmitt trigger has a positive temperature coefficient. Therefore, the enable and disable thresholds are substantially temperature independent.

The detection leg may be provided with a series of diodes. Until the voltage level of the combined semiconductor junction voltages of the diodes has been reached, no current flows within the integrated circuit other than a small microcurrent in the detection leg. As the voltage exceeds the combined semiconductor junction voltages of the diodes in the detection leg, a small current flows through the undervoltage lockout circuit. The differential comparator is connected across a resistive portion of the detection leg to obtain a measure corresponding to the voltage on the voltage supply terminal. When the supply voltage rises above the enable threshold, the current supply is enabled which permits supply current to flow throughout the integrated circuit.

The sleep pin advantageously takes advantage of the undervoltage lockout circuit. The undervoltage lockout circuit is disabled when the sleep pin is brought below a predetermined voltage threshold. In order to conserve pin count, the sleep pin may advantageously be used as a ramp pin or for some other function. As a ramp pin, it is connected to a comparator for comparing the voltage on the ramp pin to a control voltage. Under normal operation, the external capacitor connected to the ramp pin is prevented from discharging below a minimum voltage so that the predetermined voltage threshold for sleep mode is only reached when the pin is forced below the normal range of operation.

The undervoltage lockout circuit of the embodiments of the invention advantageously keeps the supply current very low until the undervoltage lockout enable threshold has been reached. The undervoltage lockout threshold determination is accomplished without the use of a band gap reference. Thus, the current normally required for a band gap reference is not needed. Instead of a band gap reference, the enable and disable thresholds are determined as a function of the ratio of emitter areas on the transistors forming the comparator. A third transistor is provided in the comparator so that two thresholds may be provided by the circuit, one for the supply voltage while it is rising and another lower threshold for shutting off the circuit when the supply voltage is falling from an enabled condition. Temperature compensation to provide substantially temperature independent thresholds for the supply voltage is provided by diodes in the detection leg, one of which is switched in and out of the circuit as the current to the third transistor is steered between two supply paths.

Other objects and advantages of the invention will become apparent during the following description of the presently preferred embodiments of the invention taken in conjunction with the drawings.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic block diagram of a secondary side post regulator.

FIG. 2 is a schematic block diagram of a programmable delay switch integrated circuit.

FIG. 3 is a schematic block diagram of a conventional under voltage lockout circuit which may be used in a programmable delay switch integrated circuit.

FIG. 4 is a schematic block diagram of a presently preferred embodiment of an undervoltage lockout circuit of the present invention.

FIG. 5 is a circuit diagram of the undervoltage lockout circuit of FIG. 4 and of a dual function sleep/ramp pin.

FIG. 6 is a schematic block diagram of an embodiment of a dual function sleep/ramp pin of the present invention.

FIG. 7 is a schematic block diagram of a conventional method for latching the output of a comparator.

FIG. 8 is a schematic block diagram of an embodiment of a high speed latchable comparator for use in the programmable delay switch integrated circuit of FIG. 2.

FIG. 9 is an alternate schematic block diagram of an embodiment of a high speed latchable comparator for use in the programmable delay switch integrated circuit of FIG. 2.

FIG. 10 is a still further alternate schematic block diagram of an embodiment of a high speed latchable comparator for use in the programmable delay switch integrated circuit of FIG. 2.

FIG. 11 is circuit diagram of the high speed latchable comparator of FIG. 9.

FIGS. 12A, 12B, 12C and 12D are schematic circuit diagrams of conventional methods for clamping the discharge level of a capacitor.

FIG. 13 is a circuit diagram of a presently preferred embodiment of a discharging clamp for a capacitor for use in the programmable delay switch integrated circuit of FIG. 2.

FIG. 14 is a schematic block diagram of an embodiment of a grounded totem pole driver with cross conduction protection and default low impedance state output for use in the programmable delay switch integrated circuit of FIG. 2.

FIG. 15 is a circuit diagram of an embodiment of an output driver for use in the programmable delay switch of FIG. 2.

FIG. 16 is a circuit diagram of a fault detection circuit for use in the programmable delay switch of FIG. 2.

FIG. 17 is a circuit diagram of a current sense amplifier for providing overcurrent protection in the programmable delay switch of FIG. 2.

FIG. 18 is a circuit diagram of sync logic circuitry for use in the programmable delay switch of FIG. 2.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The presently preferred embodiment of an undervoltage lockout circuit and a sleep pin is for use in a switch with programmable delay that may be used to control a secondary side post regulator. The invention is by no means limited to such use. Descriptions of the switch with programmable delay and the secondary side post regulator are provided herein to provide one context in which the invention may be used.

Secondary Side Post Regulator

Referring now to the drawings, a secondary side post regulator is shown in FIG. 1. A switch 10 with programmable delay may be fabricated on an integrated circuit. The switch 10, for use as the secondary side post regulator control, includes an output driver preferably a grounded totem pole driver. The driver is used to control the switching device, illustrated in FIG. 1 as an FET QS. The switch 10 is connected to the gate of the FET for providing the output from the totem pole driver. The driver will either provide a low impedance path between a first terminal and a second terminal or will drive an output signal into the first terminal. The first terminal is preferably connected to the gate of the FET and the second terminal is preferably ground. The switch 10 receives a sense signal from the output voltage of the FET. The source of the FET QS provides the output voltage. The output voltage is shown connected to an inductor L1 which filters high frequency from the output voltage. A voltage divider formed by resistors R1 and R2 provide a divided down sense signal of the output voltage. The output voltage is essentially a DC voltage. The switch 10 also receives an input signal corresponding to the voltage on the secondary winding. Resistors R3 and R4 provide a voltage divider which divide down the voltage V_(sy) on the secondary winding to provide a sync signal to the switch 10.

The switch 10 includes a programmable delay circuit for receiving the voltage sense signal from the output voltage. A first state signal is generated by the programmable delay circuit upon completion of a delay following a first, or rising, edge of the sync signal. The delay is determined by the voltage sense signal. A second state signal is generated by the programmable delay circuit a short time after the second, or falling, edge of the sync signal. The first edge and the second edge are opposite one another in that one is a rising edge and the other is a falling edge. In the preferred embodiment, the falling edge of the sync signal is used to trigger the discharging of a timing capacitor. As such, the second state signal is generated when both the sync signal has fallen and the voltage on the timing capacitor has fallen below a predetermined discharge level. The grounded totem pole driver responds to the first and second state signals. The first state signal causes an output to be driven into the gate of the FET. The second state signal causes a low impedance path to connect the gate of the FET to ground. The low impedance path is maintained even when the rising edge of the sync signal is applied to the drain of the FET until the delay period has been completed.

A connection is shown in FIG. 1 between the drain of the FET and the switch 10. As will be described below, the drain of the FET can be used as an emergency voltage supply in the switch 10 to maintain the output driver in the low impedance state when the integrated circuit supply voltage is lost or during sleep mode. FIG. 1 further illustrates a conventional primary control loop for controlling the current through the primary winding. Any number of secondary side post regulators may be provided on the secondary side of a transformer.

Switch With Programmable Delay

Referring now to FIG. 2, the switch with programmable delay shall be described in greater detail. An error amplifier EA1 receives a voltage sense signal at the EA terminal. The error amplifier produces an output on a compensation terminal COMP. The output is also used by a buffer A2 to produce an error control signal. The buffer A2 is designed as an inverter for inverting the polarity of the output from the error amplifier EA1. The buffer has a gain of -1.23 in the presently preferred embodiment. The buffer A2 also acts as a linear summer to combine the output from error amplifier EA1 with the output received from a current sense amplifier EA2.

The current sense amplifier EA2 is provided for connection to a current sense signal to provide a measure of the output current through the device being switched. For example, as in the application of FIG. 1, the output current of the FET could be sensed and provided to the current sense amplifier. Under normal conditions, the output of the current sense amplifier EA2 is high and is prevented by diode D7 from affecting the error control signal. However, in the event of an overcurrent condition, the current sense amplifier goes low and pulls the error control signal current. The current sense amplifier EA2 is designed so that it can sink more current than the error amplifier EA1 is able to provide. Therefore, under an overcurrent condition, a low signal is provided to the negative input of the buffer A2. The buffer A2 responds by providing a high signal to a comparator 150. This high signal is above the upper limit of the ramp signal so that the comparator 150 can no longer generate a command to the output driver to switch on the output signal.

Under normal conditions, the error control signal as processed through the buffer A2 is applied to the comparator 150. The comparator 150 uses the error control signal to determine the delay period following the rising edge of the sync signal before switching on the output driver. The error control signal is received at an inverting input of the comparator 150 and a ramp signal from an external timing capacitor is received at the positive input of the comparator. Upon occurrence of the rising edge of the sync signal, the timing capacitor externally connected to the ramp terminal is charged by a current source 12. The current source of 200 microamps is shown in FIG. 2. The delay period is determined by the time it takes the external timing capacitor to charge up to the voltage level of the error control signal. When the ramp signal crosses above the error control signal, the comparator 150 generates an output signal to turn on the output driver. A flip-flop like circuit 152 is connected in parallel with the comparator 150. The output of the comparator 150 is connected to the set input of the flip-flop like circuit 152. Upon generation of the output signal that switches on the output driver, the flip-flop like circuit 152 latches the comparator 150 so that the output continues to be driven. The latch on the comparator 150 is not released until the flip-flop like circuit 152 receives a reset signal.

The reset signal, in accordance with the present embodiment, is generated only when the voltage on the timing capacitor falls below a predetermined threshold and the sync signal falls below a predetermined threshold. A comparator COMP2 detects the low state of the sync signal and the comparator COMP3 detects the low condition of the ramp signal. Only when both of these signals are low will the reset signal be generated. Normally, the sync signal falls low first. The comparator COMP2 goes low when the sync signal falls below 2.5 volts. It is upon the falling edge of the sync signal that discharging of the ramp occurs. FIG. 2 provides a rough schematic of discharging the ramp. The falling edge of the sync signal causes a discharge signal to a discharging transistor 28. The discharging transistor 28 pulls greater than 200 microamps of current so as to discharge the external ramp capacitor. A discharge clamp of 1.5 volts is provided in the discharging circuit to prevent the ramp signal from being pulled below 1.5 volts by the discharging transistor. The comparator COMP3 is triggered when the ramp signal falls below 1.65 volts. Thus, there is a short delay after the falling edge of the sync signal before the reset signal is triggered to release the comparator 150.

The comparator 150 also has an additional input in parallel with the error control voltage. This input is the Voff signal which is derived from the sync signal. The Voff signal is the inverse of the sync signal. When the sync signal goes high, Voff goes low to below the 1.5 volt discharge minimum for the ramp. When the sync signal goes low, Voff goes above the discharge level of the ramp. The comparator 150 compares the ramp signal to whichever is higher, the error control voltage or Voff. When the sync signal is low, the ramp is discharged. Under these conditions, the comparator 150 should be generating a signal to the output driver that puts it in its low impedance state. If the circuit is in startup or if the output voltage of the device being switched is low, the error control signal may be below the ramp discharge level. Thus, Voff will hold the comparator 150 in the proper state. When the sync signal goes high, the Voff signal goes below the ramp discharge level so that the comparator is switched without delaying for the ramp to charge under these startup type conditions.

The output driver of the present embodiment is a grounded totem pole driver including the top output transistor N60 and a bottom output transistor N62. It is desirable to avoid cross conduction between the two output transistors. In other words, the top output transistor should be turned off before the bottom output transistor is turned on. Likewise, the bottom output transistor should be turned off before the top output transistor is turned on. Turning on the bottom output transistor N62 provides the low impedance path between the gate terminal and the power ground terminal. Turning on the top output transistor N60 drives an output signal from the power supply VC into the gate terminal. Due to the cross conduction prevention of the present embodiment, the power supplied to terminal VC may be from within a broad operating range of from 8V. to 75V. In order to achieve cross conduction prevention, a propagation delay indicated by buffer 16 is in a path to the top output transistor N60. When a signal from the comparator 150 is provided to turn on the top output transistor, the signal is given the opposite effect along another path to the bottom output transistor N62. The path to the bottom output transistor N62 is shown going through an inverter 22. The signal turning off bottom output transistor N62 reaches the bottom output transistor before the complementary signal turning on the top output transistor N60 gets to its destination. In order to turn the top output transistor off before the bottom output transistor N62 is turned on, a third path is provided making use of the sync signal. The falling edge of the sync signal causes a transistor 18 to immediately pull the top output transistor off. A short time later when the ramp signal has been discharged below 1.65 volts, a flip-flop like circuit 152 issues the reset signal which then allows the comparator 150 to send out a signal turning on the bottom output transistor N62 to provide a low impedance path from the gate terminal to the power ground terminal.

The switch with programmable delay integrated circuit 10 is also provided with an undervoltage lockout circuit illustrated by comparator COMP5. The undervoltage lockout circuit advantageously is provided with hysteresis so that the enable threshold is higher than the disable threshold. When the integrated circuit is not enabled, a microcurrent flows for detection by the undervoltage lockout circuit. Once the supply voltage at the Vcc terminal crosses above the enable threshold of the undervoltage lockout circuit, current is provided to the integrated circuit and the 5 volt regulator providing a Vref voltage for the circuit is enabled. In FIG. 2, an enable threshold of 8 volts is shown and a disable threshold of 7 volts is indicated. Once the integrated circuit has been enabled, the threshold changes from the enable threshold to the disable threshold. Not until the supply voltage falls below the disable threshold will the circuit be disabled and the 5 volt regulator switched off.

In accordance with an embodiment of the invention, a sleep mode can be implemented in conjunction with the undervoltage lockout circuit. The sleep mode may be implemented by providing a signal which disables the undervoltage lockout circuit thereby disabling the integrated circuit. Further in accordance with an embodiment of the invention, the sleep mode may be implemented on the same terminal that provides the ramp function. Under normal operation, the ramp signal cannot be pulled below 1.5 volts. When an external signal is applied to the ramp terminal which brings the terminal below a sleep threshold substantially lower than the 1.5 volts, that signal may be used to disable the undervoltage lockout circuit.

The switch with programmable delay integrated circuit may be provided with additional fault protection. A comparator COMP6 may be provided to detect whether the 5 volt regulator is operating properly. If the 5 volt regulator falls below a predetermined threshold, 4.4 volts for example, a fault signal is issued which is directed to the ramp input of the comparator 150. The fault signal discharges the ramp capacitor thereby preventing the comparator 150 from generating a signal to turn on the top output transistor N60. The Vreg comparator COMP6 may be provided with hysteresis to avoid jitter in this fault signal. For example, the fault signal may be issued when Vreg falls below 4.4 volts, whereas the fault signal will be changed to a Vreg OK signal once the voltage on the reference rises back above 4.5 volts.

Additional fault protection may be provided by detecting whether the supply voltage is at an acceptable level. A comparator COMP7 may be provided to detect whether the supply voltage Vcc has fallen below Vreg. It is possible that a capacitor on the Vref terminal is holding the regulated voltage up for a time following the loss of the supply voltage. If the supply voltage falls below the Vreg, a signal is sent just like the Vreg OK signal to discharge the timing capacitor and disable the comparator 150. An offset voltage may be included so that the comparator COMP7 is triggered if the supply voltage falls to more than the offset voltage below Vreg. The offset voltage allows for an application in which Vcc and Vreg are both tied to an externally regulated voltage. In the presently preferred embodiment, an offset of 0.7V is used.

If the circuit is in sleep mode or undervoltage lockout, it would be undesirable to permit uncontrolled output signal to be conducted through the gate terminal. It is far preferable to have the output driver under such fault conditions default into a low impedance state. In accordance with a present embodiment, an emergency voltage supply is provided which will hold the bottom transistor N62 on and the top transistor N60 off under such fault conditions. In accordance with a preferred embodiment, the voltage on the drain terminal is used as the emergency voltage supply. In the particular example where the switch with programmable delay 10 is being used to drive a FET, the dangerous condition exists when there is a high voltage on the drain of the FET. By using the drain voltage itself to provide the power to hold the bottom output transistor on and the top output transistor N60 off, the dangerous condition is averted.

In laying out the integrated circuit for the switch with programmable delay 10, it is preferred that a large epitaxial moat be provided to separate the interface circuitry at the drain terminal V_(D) and SYNC terminal from the logic switching circuitry. The moat advantageously protects the switch 10 from parasitic below ground signals on either of these two terminals.

Undervoltage Lockout Circuit

Referring now to FIG. 4, a schematic block diagram of an undervoltage lockout circuit illustrates the concept of an embodiment of the invention. A supply terminal Vcc receives the supply voltage. A detection leg including a detection resistance R20 is connected between the supply Vcc and ground. The detection leg may include a series of diodes. Additional resistance R21 may be provided in the detection leg to limit the amount of detection current through the detection leg. The diagram shows K+1 diodes where K is an integer. The diodes set a threshold of K+1 times the semiconductor junction voltages of each of the diodes. Until the threshold set by the diodes has been reached, substantially no current flows through the detection leg or any of the integrated circuit. The only current is a microcurrent in the detection leg of less than a few microamps.

A differential comparator is represented in FIG. 4 by a buffer 107 and a comparator 108. The buffer 107 is connected with inputs at either end of a resistive portion of the detection leg. In the embodiment shown, the positive input of the buffer 107 is connected to one end of resistor R20 and the negative input of the buffer 107 is connected to the other end of resistor R20. The voltage across R20 is then compared with a Δ Vbe created by the different emitter areas of the transistors in the differential comparator. When the voltage across resistor R20 rises above the Δ Vbe, the undervoltage lockout circuit enables a current source which permits current to flow throughout the integrated circuit. A current supply transistor P4 is turned on when the enable threshold has been crossed.

The comparator 108 is a hysteretic comparator. Thus, when the current supply is turned on, the voltage reference Δ Vbe is reduced by an amount Vh. This forms a second lower threshold which is used by the undervoltage lockout circuit to disable the integrated circuit should the supply voltage drop below the second threshold.

Enabling of the integrated circuit also switches on a transistor P1 which provides a short around one or more of the diodes. In the presently preferred embodiment, this eliminates one of the diodes from the detection leg and changes the temperature response so that the enable and disable thresholds at the supply terminal are relatively temperature independent. Adding up the voltages in the detection leg, the enable threshold and the lower disable threshold can be represented mathematically. At the enable threshold, Vcc_(enable) =((R20+R21)/R20)×ΔVbe+(K+1)×Vbe. At the disable threshold, Vcc_(disable) =((R20+R21)/R20) ×(Δ Vbe-Vh)+K×Vbe). Vbe is the semiconductor junction voltage for each of the diodes. Vbe has a negative temperature coefficient. Vh has a positive temperature coefficient. In accordance with an embodiment of FIG. 5, the resistor values in the detection leg and resistor R25 are selected so that the enable threshold and the disable threshold are each substantially temperature independent.

Referring now to FIG. 5, the presently preferred embodiment of the undervoltage lockout circuit will be described. A detection leg is connected between the supply terminal Vcc and ground. The detection leg is the only portion of the integrated circuit that conducts current while the undervoltage lockout circuit and the integrated circuit are disabled. The current through the detection leg is a microcurrent which rises to at most to about 25 μa for a 15V. supply voltage in the presently preferred embodiment. A series of large resistors R22 and R21 limit the size of the current through the detection leg.

The detection leg includes a series of transistors arranged to provide a number of semiconductor junctions in phase along the detection leg. The semiconductor junctions in the detection leg include the base-emitter circuits of transistors N1, N2, N3, N4, N14 and N6. Also cross connected with transistors N14 and N6 include transistor N5 configured as a diode and a base emitter junction of N15. The diode configured transistor N1 is connected in parallel with a PNP transistor P1. Transistor P1 has a common base with the current supply to the integrated circuit formed by transistors P3 and P4. When the undervoltage lockout circuit turns on the integrated circuit, the current supply P3, P4 is on and likewise transistor P1 turns on shorting around the diode N1. This causes a jump on the voltage across the detection resistance R20, helping to ensure that there is no output jitter upon crossing the enable voltage threshold. In the embodiment of FIG. 5, there are 6 semiconductor junctions in the detection leg. Therefore, as the voltage at the supply terminal rises above the combined semiconductor junction voltages of these 6 junctions, current may begin to flow in the undervoltage lockout circuit. Current for the undervoltage lockout circuit is sourced by the current sink formed by transistors N5, N6, N14, N15 and resistor R25. When detection leg voltage exceeds its combined semiconductor junction voltages, this current source enables approximately 150 μa of current to flow in the undervoltage lockout circuit of the presently preferred embodiment.

A hysteretic differential comparator is responsive to a detection voltage across resistor R20. The hysteretic differential comparator is formed by two current steering comparators and a Schmitt trigger. At the input end of the hysteretic differential comparator a current steering comparator is formed by a first transistor N11, a second transistor N13 and a third transistor N12. The base of the first transistor N11 is the positive input to the comparator. The second transistor N13 and the third transistor N12 have a common base which acts as the negative input to the comparator. The emitters of the first, second and third transistors are all connected. In accordance with the presently preferred embodiment, the emitter area of the first transistor N11 is two times standard, the emitter area of the second transistor N13 is ten times standard and the emitter area of the third transistor N12 is two times standard. The current source, formed by transistors N14, N15, N5, N6 and the resistor R25, sinks bias current from the input current steering comparator.

The Schmitt trigger is formed by transistors N7, N8, N9, N10 and resistors R23 and R24. Current through the Schmitt trigger is split between a first current path through resistor R23 and a second current path through resistor R24. The first transistor N11 receives its collector current from the first current path through resistor R23. The second transistor N13 receives its collector current from the second current path through resistor R24. The current into the collector of third transistor N12 will come from either the first current path or the second current path. When the chip is in a disabled state due to an undervoltage condition on the supply terminal, the Schmitt trigger provides current to the third transistor N12 through the second current path including resistor R24. When the undervoltage lockout circuit is in the enabled condition, current is provided to the third transistor N12 through the first current path including resistor R23. This difference in the current through the first and second current paths provides the hysteresis voltage Vh which results in different thresholds on the way up and on the way down for the hysteretic differential comparator.

A current steering comparator including transistors N20 and N21 is at the output of the hysteretic differential comparator. The base of transistor N20 is connected to the base of transistor N8. The base of transistor N21 is connected to the base of transistor N9. Current through the current steering transistors N20 and N21 is pulled by current source transistor N19 and into resistor R28 to ground. Transistor P5 and transistor P6 mirror the current established by transistor N14, transistor N15 and resistor R25. This current is provided through transistor P7 and transistor N17 to transistor N18. Transistor N19 mirrors the current from transistor N18 to sink bias current in the current steering comparator of transistor N20 and transistor N21. The current will be directed through either the collector of transistor N20 or the collector of N21 depending on which transistor has a higher base to emitter voltage.

It is desirable to avoid jitter when the base voltages of transistors N20 and N21 cross a trip point. The high gain of the Schmitt trigger helps this by rapidly switching the current path to the third transistor N12, thus changing the trip point and increasing the voltage imbalance on the bases of transistors N20 and N21. As the enable threshold for the undervoltage lockout circuit is approached, the difference in voltage Δv_(o) between the base of transistor N21 and the base of transistor N20 is negative. As the Δv_(o) becomes smaller approaching zero, the trip point is reached. The trip point is reached while Δv_(o) is still negative.

Ideally, Δv_(o) is zero at the trip point, but in actuality this is not achieved. In order to compensate for the temperature coefficient of Δv_(o) at the trip point, the current source formed by transistors N5, N6, N14, N15 and R25 has a positive temperature coefficient. The current source is designed to provide a current of Vt×ln(4)/R25. When transistor N21 is conducting, transistor P2 conducts thus turning on the current supply to the rest of the integrated circuit formed by transistors P3, P4. This enables the rest of the integrated circuit including the Vreg regulator and the charging current to the ramp terminal. Also, transistor P1 is turned on providing a short around transistor N1. This eliminates transistor N1 from the detection leg when the integrated circuit is enabled.

A description of the operation of the undervoltage lockout circuit will now be described. The supply voltage Vcc starts off low. As the supply voltage increases, the detection leg has substantially no current, only a few microamps, flowing through it. When the supply voltage approaches 4.2 volts, the current source composed of transistor N14, transistor N15, transistor N5, transistor N6 and resistor R25 begins to conduct. In the interval between the supply voltage reaching 4.2 volts and until the undervoltage lockout enable threshold is reached, roughly 150 microamps flows through the undervoltage lockout circuit. A trip point is reached when the detection voltage across resistor R20 equals Vt×ln ((emitter area of N12+the emitter area of N13)/(emitter area of N11)). At this point, the voltage at the bases of transistor N20 and N21 change sharply causing transistor P2 to conduct. The current to the third transistor N12 at this point shifts to the first current path through resistor R23 and transistor N9. The integrated circuit is now enabled. Transistor P1 goes into saturation and shorts out the diode N1. In terms of the supply terminal voltage, at the enable trip point, the supply voltage equals approximately ((R21+R20+R22)/R20) ×Vt×ln ((emitter area of N12+the emitter area of N13)/(emitter area of N11))+6 Vbe.

With the supply voltage above the enable threshold, the integrated circuit is active. Since the diode N1 is shorted out and the hysteresis created by shifting the current through the third transistor N12 from the second current path through resistor R24 to the first current path through resistor R23 reduces the effective ΔVbe required for the bases of transistors N20 and N21 to switch, the undervoltage lockout disable threshold is lower than the undervoltage lockout enable threshold. For the hysteretic differential comparator, the detection voltage across resistor R20 for switching the undervoltage lockout circuit to disable is approximately equal to Vt×ln ((emitter area of transistor N13--the emitter area of N12)/(emitter area of N11)). At this trip point, the disable voltage threshold at the supply terminal is equal to ((R21+R20+R22)/R20)×Vt×ln ((emitter area of transistor N13--the emitter area of N12)/(emitter area of N11))+5 Vbe. The thresholds set by the differential hysteretic comparator are advantageously determined by the emitter areas of the first transistor N11, the second transistor N13 and the third transistor N12. The enable threshold for the supply terminal is higher than the disable threshold in the Vt×ln term which has a positive temperature coefficient. On the other hand, the enable threshold for the supply terminal is also higher than its disable threshold by the Vbe of semiconductor junction N1. The Vbe has a negative temperature coefficient. The positive and negative temperature coefficients substantially cancel each other out. Therefore, the difference between the enable threshold for the supply voltage and the disable threshold for the supply voltage is substantially temperature independent. Moreover, the enable and disable thresholds themselves are each substantially temperature independent. By removing the diode N1 from the detection leg when the circuit is enabled, the positive temperature coefficient of Vh for the hysteretic differential comparator is temperature compensated to achieve temperature independence.

Sleep Terminal

In accordance with an embodiment of the invention, a sleep mode may be attained by taking advantage of the function of the undervoltage lockout circuit. The undervoltage lockout circuit maintains the integrated circuit in a disabled state in which the integrated circuit has no access to current. Not until the supply voltage reaches an enable threshold will the undervoltage lockout circuit permit current to the integrated circuit. Referring to FIG. 6, a sleep terminal 118 is provided on the integrated circuit to allow forcing the undervoltage lockout circuit to disable the integrated circuit at anytime by holding the sleep terminal 118 below a predetermined voltage threshold. The sleep terminal of this embodiment may function with any suitable undervoltage lockout circuit including the conventional undervoltage lockout circuit of FIG. 3 and the undervoltage lockout circuit embodiments of the invention.

A transistor 120 has a collector connected to the undervoltage lockout circuit. The transistor is a bias current transistor in the presently preferred embodiment. The base of the bias current transistor is coupled to the voltage supply terminal Vcc. The emitter of the bias current transistor is connected through a semiconductor junction 122 to ground. A sleep switch is provided by sleep transistor 124 with its base connected to the base of the bias current transistor. The sleep transistor 124 provides a base-emitter semiconductor junction between the base of the bias current transistor 120 and the sleep terminal 118. The base-emitter semiconductor junction of the bias current transistor and the semiconductor junction 122 combine to clamp the base of the sleep transistor 124 at about 2 Vbe's. When the sleep terminal 118 is above 1 Vbe, the sleep transistor 124 is reverse biased and thus does not interfere with the normal operation of the integrated circuit. Only when the sleep terminal 118 is externally forced below 1 Vbe will the sleep transistor 124 have an impact. As the base of the sleep transistor 124 is brought below the clamped two Vbe's, the bias current transistor becomes reverse biased and is unable to conduct current through its collector. By bringing the sleep terminal 118 low enough, about 0.3v, current through the collector of the bias current transistor 120 is completely cut off. With the loss of bias current, the undervoltage lockout circuit is disabled thereby shutting off all current to the integrated circuit. Any regulator or current supply on the integrated circuit is completely shut down. The sleep terminal could also be implemented without the semiconductor junction voltage of semiconductor junction 122. However with the base of the sleep transistor 124 clamped at only 1 Vbe above ground, the sleep pin needs to be held below ground to completely implement the sleep mode. Therefore, it is preferred that the base of the sleep transistor have a clamped voltage of 2 Vbe's or more.

Since in normal operation the sleep transistor 124 has no impact on the circuit, the sleep terminal may be used for other functions in the integrated circuit. In this manner, multiple functions can be implemented on a single IC package pin. The pin count of the integrated circuit can thus be reduced. According to one embodiment of the invention, a combination sleep and ramp pin functions as the sleep terminal and the ramp terminal. As a ramp terminal, an external capacitor is intended for connection to the pin. The external capacitor is charged by a current source 126 which is, in turn, connected to a regulated voltage. In order to maintain the sleep function at the ramp pin, it is necessary that in normal operation that the ramp pin not fall below the predetermined voltage threshold for entering the sleep mode. Any of the known discharge clamps or the discharge clamp may be used to prevent the ramp pin from falling below a predetermined minimum during normal operation.

Referring back to FIG. 5, the sleep pin shall be described with respect to the presently preferred embodiment. Transistor N16 functions as the sleep transistor. The emitter of sleep transistor N16 is connected to the sleep pin, which in accordance with the presently preferred embodiment functions also as the ramp pin. The base of the sleep transistor N16 is connected to the base of the bias current transistor N14. Transistor N14 has an emitter that is connected through the semiconductor junction of transistor N6 to ground. The collector of transistor N14 conducts the bias current from the differential comparator of the undervoltage lockout circuit. As long as the sleep pin remains above 1 Vbe, sleep transistor N16 is reverse biased and does not further impact on the normal functioning of the integrated circuit. It is only when the sleep pin is forced below 1 Vbe that the base of the bias current transistor N14 is brought below 2 Vbe and the bias current transistor therefore becomes reverse biased. As the sleep pin is pulled below one Vbe, sleep transistor N16 steals current from transistors N17 and N18. This reduces the current and eventually shuts off current through transistor N19. This disables the comparator formed by transistors N20 and N21. Thus, transistor P2 is off disabling the current source P3, P4. Without current on the integrated circuit, all regulators and current sources connected thereto on the integrated circuit are also shut off. When the sleep pin is low enough, about 0.3V, the bias current is completely prevented from flowing from the undervoltage lockout circuit thereby completely disabling that circuit. The only current flowing during a sleep mode forced at the sleep pin is the microcurrent through the detection leg. With current through transistor N14 shut off, the PNP transistor P5 is likewise shut off. However, should any leakage current flow through transistors P5, P6 or P7, such current will be sinked through the sleep transistor N16 during the sleep mode.

Of course, it should be understood that various changes and modifications to the preferred embodiments described above will be apparent to those skilled in the art. For example, the sleep pin may perform any of a number of functions instead of or including as a ramp pin. Any number of differential comparator schemes may be used to detect voltage thresholds across a resistive portion of a detection leg. These and other changes can be made without departing from the spirit and scope of the invention and without diminishing its attendant advantages. It is therefore intended that such changes and modifications be covered by the below listed claims.

Comparator with Latch

A block diagram of a conventional prior art comparator with latch is shown in FIG. 7. When the ramp or oscillator signal crosses above the error control signal, the comparator senses this crossing and latches this information into a flip-flop which then turns on an output device. Typically, the output of the flip-flop is used to turn on the output device. A reset command is then required to turn the output off. The flip-flop is an additional stage which adds a delay in the signal path to the output. High speed applications may find this delay unacceptable.

In FIG. 8, a simple block diagram illustrates the basic circuit blocks and functioning of a present embodiment of a comparator with latch. A first comparator 136 is used in the standard manner to compare a ramp signal with an error control voltage signal. The ramp signal is connected to the timing capacitor. The error control signal is received from the error amplifier. The presently preferred embodiment for use in the switch with programmable delay integrated circuit includes a Voff signal. Voff is derived from the secondary voltage signal V_(sy). Voff is synchronous with and inverse to V_(sy). Voff switches between 1.3 volts when V_(sy) goes high and the ramp pin is charging and 1.9 volts when V_(sy) goes low and the ramp pin goes low. Voff and the error control signal are connected in parallel. Thus, the comparator 136 compares the ramp voltage with the higher of the error control voltage and Voff. Under normal conditions, when the ramp signal is low or inactive, it is at a level between the high and low signals produced at Voff, about 1.5 volts, for example. Thus, when the ramp is low, Voff is above the ramp voltage and makes sure that the comparator does not generate a signal to switch on the output driver of the integrated circuit. The Voff also functions to operate the comparator during start up when the error control voltage is below the Voff. The output of the first comparator 136 is either a high valued signal or a low valued signal. In the embodiment shown, the output is a high valued signal when the ramp voltage exceeds both the error control voltage and the Voff.

A second comparator 138 may be referred to as a latching comparator. The second comparator 138 receives the output of the first comparator 136 at a first input. The output of the latching comparator 138 is representative of the output of the comparator as a whole. The output is used to switch the output driver. The output of the second comparator 138 is also the set input to a flip-flop like circuit block 140. The flip-flop block 140 has a reset input for receiving a reset signal. When the reset signal is in a non-reset state and the flip-flop block 140 receives the set state from the latching comparator 138, then a latch signal is generated and provided to the second input of the latching comparator 138. The latch signal has a voltage value that is outside of the range of voltages between the low valued signal and high valued signal generated by the first comparator 136. Thus, the state of the latching comparator 138 does not change when it is receiving the latch signal. The set signal at the output of the latching comparator 138 is maintained as long as the latch signal continues to be applied to the input of the latching comparator 138. When a reset signal is provided to the flip-flop block 140, the flip-flop block generates a comparator reference signal that has a voltage in between the low and high values from the output of the comparator 136. Thereafter, when the output of comparator 136 is below the reference comparator signal the latching comparator 138 changes to a "not set" state. When the reference comparator signal is recrossed by the output of the comparator 136 a set signal is provided again by the latching comparator 138 and an output signal is latched. The flip-flop block 140 is advantageously provided in parallel with the latching comparator 138 so as not to unnecessarily slow the propagation of the output to the switch being controlled.

A presently preferred embodiment is shown in a block diagram of greater detail in FIG. 9. Here it is seen that the first comparator 136 generates either a high signal of 4.25 volts or a low signal of 3.75 volts. The comparator may have a positive output and an inverting output. When the positive output is high at 4.25 volts the inverting output is low at 3.75 volts. When the positive output is low at 3.75 volts the inverting output is high at 4.25 volts. The positive output from the first comparator 136 is provided to the negative input of the second comparator, latching comparator 138. When the ramp signal exceeds the error control signal and a high valued signal is provided by the first comparator, the second comparator 138 generates a signal in a first state. In the first state of the presently preferred embodiment, the second comparator 138 issues a low signal of 3.8 volts. A second state of the second comparator 138 provides a high signal of 5 volts in the presently preferred embodiment. When the second comparator receives a positive input that is higher than the input from the first comparator 136, the second comparator 138 generates a signal in the second state, a high signal of 5 volts. The output of the second comparator 138 is directly related to the switching control signal GON. When the output of the second comparator is in its first state, a low signal, the switching control signal GON is high. When the second comparator 138 is in its second state with a high signal, the switching control signal GON is low.

A voltage shifter 142 also receives the output signal from the second comparator 138. The voltage shifter 142 changes the range of the voltage signals from the second comparator. Instead of the initial range of 3.8 volts to 5 volts, the voltage range produced through the voltage shifter 142 is from 2.1 volts to 2.6 volts. The reset signal similarly varies between 2.1 volts and 2.6 volts. Both of these signals, the reset signal and the signal from the second comparator 138 are provided to a comparator 144. The comparator 144 acts like a flip-flop. A voltage reference is provided at the negative input of the comparator 144. The voltage reference is provided in between the low and high signals received from the voltage shifter and the reset input, a value of 2.35 volts in the presently preferred embodiment. The voltage reference is compared to whichever is higher, the reset input or the input from the voltage shifter 142. The comparator 144 issues latch signals when the reset input is in the non reset state and the output from the second comparator 138 is in its first state low signal. The comparator 144 is shown with two outputs, the positive output goes to the positive input of the second comparator 138. The latch signal on the positive output is a 3 volt signal. 3 volts is below the lowest value, 3.75 volts, that can be generated from the first comparator 136. If the reset signal is in the reset state or the output from the comparator 138 is in its second state, the comparator 144 generates a comparator reference signal on its outputs. The comparator reference signal falls in between the range of output signals from the first comparator 136. The comparator reference signal generated along the positive output from the comparator 144 is 4 volts to the input of the second comparator 138.

In the presently preferred embodiment, the switching control signal GON is used to switch components in the integrated circuit. Therefore, it requires a voltage range that includes a low signal close to ground and a high signal. A third comparator 146 and a fourth comparator 148 are included to achieve such a level shifted output signal. The third comparator 146 receives the inverting output from the first comparator 136. The positive input to the third comparator 146 comes from the inverting output of the comparator 144. The inverting output of comparator 144 provides either a latch signal at 5 volts or a comparator reference signal at 4 volts. The latch signal at 5 volts exceeds the highest value, 4.25 volts, that is generated by the first comparator 136. Thus, when the latch signal is being applied to the third comparator 146 the output of the third comparator 146 remains at a high signal of 5 volts. The low signal output of the third comparator 146 is 3.8 volts. A fourth comparator 148 receives the outputs from the second and third comparators. When the comparator circuit is being latched, the output from the second comparator 138 is a low signal at 3.8 volts and the output from the third comparator 146 is a high signal of 5 volts. This causes the fourth comparator 148 to generate a high signal on the switching control output. The switching control output from comparator 148 varies between a high signal of about 2.5 volts and a low signal of about 0.7 volts.

The circuit of FIG. 9 may be alternatively represented in the form shown in FIG. 10. Here, the first, second, third, and fourth comparators are combined in one block referred to as comparator 150. Comparator 150 is thus a four input comparator receiving the error control signal on a negative input, the ramp signal on a positive input and two signals on parallel positive and negative inputs from a flip-flop circuit 152. The flip-flop circuit 152 represents the actions of the comparator 144 from FIG. 9. Whenever the ramp input exceeds the error control signal input the output of the comparator 150 is in a first state. In this state, the output on the switching control signal GON is a high signal and the output to the set input of the flip-flop 152 is a low signal which causes the flip-flop to set. When the flip-flop 152 sets, latch signals are provided to the two additional inputs of the four input comparator 150. The latch signals cause the comparator 150 to latch with a high signal output to the switching control signal. The flip-flop 152 also has a reset input and receives a reset or non-reset signal. When a reset signal is received on the reset input, the latch signals are changed to reference comparator signals which permit the comparison to proceed between the error control signal and the ramp voltage. The error control input to the comparator 150 may be connected in parallel with a V-off signal to ensure that the comparator remains low when the ramp voltage is low and V_(sy) is low even if the error control signal drops below the ramp signal's discharged level. The ramp voltage is compared to the error control signal or the V-off signal whichever is higher applied to the positive input of the four input comparator 150. The comparator 150 is unable to switch low until the flip-flop 152 receives the reset signal and resets the latch signals to reference comparator signals. Whenever the reset signal is being provided to the flip-flop 152 the comparator 150 merely acts as a comparator and no latching takes place.

The currently preferred embodiment shall now be described in greater detail with regard to its circuit diagram shown in FIG. 11. The circuit is powered by a regulated voltage of 5 volts. The first comparator 136 is made up of transistors N25, N26, and N27 all having a common emitter connected to a current source sinking a current I1. Resistor R35 is the voltage shifting component for comparator 136. The base of transistor N27 is the positive input of the comparator and receives the ramp signal. Transistors N25 and N26 are in parallel and their bases receive the Voff signal and the error control signal B0 respectively. The error control signal has been generated by error amplifier EA1 and A2. The second comparator 138 is formed by transistor N30 and N31. Transistors N30 and N31 have a common emitter connected to current I3. The base of transistor N30 is connected to the positive output from the first comparator 136. The base of transistor N31 is connected to the positive output from comparator 144. The output of comparator 138 is applied to the base of transistor N33. Transistor N33 , resistor R40, capacitor C3, resistor R41, transistor N34 and N35 all form the level shifter 142. The voltage swing from 3.8 volts to 5 volts at the base of transistor N33 is transformed into a voltage swing of 2.1 volts to 2.6 volts at the base of transistor N36. A rapid voltage change is transmitted quickly through current enhancement capacitor C3 to the base of transistor N36. The base of transistor N36 is a positive input for the comparator 144. The other components of comparator 144 include transistor N32 and transistor N37. Transistors N36 and N32 and N37 share a common emitter. The reset signal is provided to the base of transistor N32. A reference signal of 2.35 volts is provided to the base of transistor N37. Transistors N36 and N32 and N37 form a transconductance amplifier in which the voltages at the bases of these transistors is compared and results in output currents at the collectors of these transistors. A 100 microamp current I5 is pulled from the collector of transistor N37. This provides 1 volt across resistor R43 which is connected between the regulated voltage and the collector of transistor N37. Thus the output of the collector of transistor N37 varies between a high value of 4 volts and a low value of 3 volts. At the collectors of transistors N36 and N32 there is no current imbalance added to the output so the outputs vary between a full 5 volts from the regulated voltage to a low signal of 4 volts. The output from the transistor of N37 is provided to the second comparator 138 and serves either as the latch signal or the reference comparator signal. The output from the collectors of transistors N36 and N32 is provided to the third comparator 146 which is made up of transistors N28 and N29. These transistors have a common emitter. The base of transistor N28 is connected to receive an inverting output from the first comparator 136. The output from the third comparator 146 is provided to a comparator 148 which is formed by a differential to single ended level shifter. The differential inputs are provided to the bases of transistors N40 and N38. The current thereby generated across resistors R44 and R45 is compared to the current across resistors R48 and R49. If the current in resistors R44 and R45 is higher, the current mirror formed by transistors N39, N41 and N43 translates more current than is available in resistors R48 and R49. Therefore, all of the current from resistors R48 and R49 is pulled down through transistor N43 leaving none for the output signal GON which as a result goes low. If the current in resistors R44 and R45 is lower than the current in resistors R48 and R49, the output signal GON goes high. Transistors N42 and R46 form a clamp to keep the minimum voltage at one Vbe. Capacitors C4 and C5 are transient current enhancement capacitors for boosting speed. The switching control signal GON is taken from the collector of transistor N43. The signal varies between a low of 0.7 volts and a high of 2.5 volts.

The latchable comparator circuit operation will now be described. During startup or whenever the gate voltage of the FET being switched is low, it is desired to switch the output driver on as soon as the sync signal goes high and to continue to switch and hold the output driver off when the sync signal falls low. When the error control signal is DC, if it were set above the ramp signal when the ramp is low, there will be a delay in the turn on between beginning to charge the ramp and having the ramp cross the error control signal. To overcome this delay, the Voff signal is advantageously provided in parallel with the error control signal. This permits the error control DC level to be set below the ramp's discharged level when the sensed voltage is low during startup, for example. When the ramp is discharged, Voff is high (1.9 volts) and holds the comparator low. As soon as the sync signal goes high, Voff immediately falls below the ramp signal to a low of 1.3 volts. Thus, with the error control signal in the low condition characteristic of startup or a low gate voltage, the comparator can immediately switch high without waiting for the external timing capacitor to charge up the ramp voltage.

When the ramp voltage at the base of transistor N27 reaches the voltage at the higher of the base of transistor N25 or transistor N26, the base of transistor N28 is lowered from 4.25 volts to 3.75 volts. At the other output of the first comparator 136 the base of transistor N30 is raised from 3.75 volts to 4.25 volts. As the base of transistor N28 is brought down its collector voltage connected to the base of transistor N40 rises from 3.8 volts to 5 volts. As the base of transistor N30 rises its collector falls from 5 volts to 3.8 volts. As this brings the base of transistor N33 down the voltage level shifter 142 reduces the voltage at the base of transistor N36 from 2.6 volts to 2.1 volts. As the base of N36 drops below the 2.35 reference level the output of comparator 144 at the base of transistor N29 rises from 4 volts to 5 volts. Likewise, the other output at the base of transistor N31 goes from 4 volts to 3 volts. At this point, the output of comparator 148, the switching control output has risen to its high level of 2.5 volts. Now that the base of transistor N28 cannot rise above the voltage at the base of transistor N29 and the base of transistor N30 cannot drop lower than the voltage at the base of transistor N31, the comparator made up of transistors N25, N26, and N27 is basically disabled. The switching control output GON is latched high. The output signal will go low only when the ramp voltage at the base of transistor N27 drops below the V-off or the error control voltage B0 and the reset pin goes above the 2.35 volt reference.

Protection Circuitry Through The Reset Signal

The reset signal may simply be provided as an indication of a discharged timing capacitor. This function is achieved with a comparator (COMP3) shown in FIG. 2, which compares the ramp input of the first comparator 136 with a voltage threshold of 1.65 volts. When the ramp voltage is above 1.65 volts a reset signal is prevented. When the ramp signal falls below 1.65 volts a reset signal is permitted. However, an additional constraint has been added to the reset signal to further protect the output driver transistors.

A comparator COMP2 compares the sync signal with a voltage threshold of 2.5 volts. Only when the sync signal, a divided down version of V_(sy), has fallen below the threshold of 2.5 volts and the ramp voltage has fallen below its threshold will a reset signal be generated. This provides protection for a situation in which sync signal is high and the ramp input is brought low because of an error, a short or a purposeful attempt to put the circuit in sleep mode. Under such conditions, the output is kept latched high. This prevents the gate of the FET Q_(s) from being grounded when the high V_(sy) voltage is present on the drain of the FET Q_(s) and consequently on the source of the FET Q_(s). Not until V_(sy) goes low will reset be permitted.

Discharge Clamp

There are many ways to clamp a capacitor voltage and stop the capacitor from discharging once its voltage has reached a known value. Referring to FIG. 12A, zener clamping is shown. A zener diode 20 is connected between the capacitor and Vreg. The capacitor discharges through transistor N45 until the zener breaks down. The transistor N45 then absorbs the zener current and the capacitor is clamped at Vreg-Vz. In FIG. 12B, an example of NPN clamping is shown. The predetermined minimum discharging voltage is Vclamp. Vclamp is applied to the base of a PNP transistor P11. The emitter of the PNP transistor P11 is connected to the base of an NPN transistor N47. The base of the NPN transistor N47 is 1 Vbe above the voltage on the capacitor. Because of the PNP the base of the NPN transistor N47 is also 1 Vbe above Vclamp when the NPN transistor N47 is off during discharging. Therefore the capacitor can only discharge down to Vclamp. An example of PNP clamping is shown in FIG. 12C. A PNP transistor P12 is connected between the capacitor and ground. When the capacitor is charging, the PNP transistor P12 is held off. During discharging, the PNP transistor is on. The base of the PNP transistor cannot fall lower than 1 Vbe below Vclamp. The capacitor C which is 1 Vbe above the base of the PNP transistor P12 thus cannot fall below Vclamp.

Another method is to use an op-amp 162 for clamping the discharge voltage of a capacitor. A conventional op-amp clamp is shown in FIG. 12D. The output of the op-amp 162 is connected to the capacitor C. The output of the op-amp 162 is also fed back to the inverting input of the op-amp. The capacitor is thus clamped to the positive input of the op-amp 162. By providing a desired charging level or a desired discharging level to the positive input of the op-amp, the capacitor C is controlled to charge to the charging level or discharge to the discharging level.

Referring now to FIG. 6, a basic schematic of the discharge clamp of a present embodiment is shown. The integrated circuit is provided with a ramp pin for connection to an external capacitor C. A discharging transistor N55 is coupled between the ramp pin and ground. Discharging transistor N55 has a collector connected to the ramp pin, a base and an emitter connected to ground. A discharge signal is coupled to the base of the discharging transistor N55. In the presently preferred embodiment, the discharge signal is derived from the sync signal.

A differential amplifier 40 has a first input connected to a reference clamp voltage. In the embodiment shown, the first input is the positive input of the differential amplifier. The other input of the differential amplifier forms the feedback loop. This inverting input of the differential amplifier shown is coupled to the ramp pin and to the collector of the discharging transistor N55. The output of the differential amplifier is also coupled to the discharging transistor completing the loop.

A mirror transistor N52 provides a semiconductor junction between the output of the differential amplifier and ground. The mirror transistor N52 has a collector connected to the output of the differential amplifier, a base connected to the base of the discharging transistor and an emitter coupled to ground. The mirror transistor N52 and the discharging transistor N55 act as a current mirror.

A current source for charging the external capacitor C is provided at the collector of the discharging transistor N55. When the discharge signal is provided to the base of discharging transistor N55 so as to turn on the discharging transistor N55, the discharging transistor sinks the current from the current source and a discharge current from the capacitor C. The voltage on capacitor C is thus discharged through the discharging transistor N55. The capacitor continues to discharge until it drops to the reference clamp voltage. When the discharge signal has been pulled low at the base of the discharging transistor N55, discharging transistor N55 is off. At this time, the current source connected to the Vreg of the integrated circuit provides charging current to the external capacitor C.

The differential amplifier of the presently preferred embodiment is a transconductance amplifier. Referring now to FIG. 13, a differential pair of transistors P15 and P17 provide the inputs to the transconductance amplifier. The base of transistor P15 is connected to the reference clamp voltage. In the presently preferred embodiment, this voltage is 1.5 volts. The emitter of transistor P15 is connected to the emitter of transistor P17. The common emitters are connected to a current source transistor P16. The collector of transistor P15 is the output of the transconductance amplifier. The base of transistor P17 is the inverting input of the transconductance amplifier. The collector of the discharging transistor N55 is connected to the inverting input at the base of transistor P17. The collector of transistor P17 is connected to ground. Mirror transistor N52 has its collector connected to the output of the amplifier at the collector of transistor P15. The output current through the mirror transistor N52 is mirrored in the discharging transistor N55. The emitter of the discharging transistor is four times in area compared to the emitter of the mirror transistor N52, thus the mirrored output current is equal to I_(N52) ×4e^(VR57/Vt) where I_(N52) is the collector current of N52 and VR57 is the voltage across R57.

The voltage on the base of transistor P15 is the reference clamp voltage. The voltage on the base of transistor P17 is the voltage on the capacitor. The amplifier is balanced when voltage on the base of transistor P15 is about equal to the voltage on the base of transistor P17. A small error is required across the differential pair so that the current through transistor N52 exactly balances the current out of transistor P18. At this output current level, the charging current from current source transistor P18 is equal to the current being sinked through the discharging transistor N55. Thus, there is no additional current being pulled from the ramp pin. In the balanced state, the voltage on the ramp pin remains at 1.5 volts.

The discharge signal varies between being present with a high of 1.4 volts and being absent with a low value of 0.7 volts. When the discharge signal is absent and a low signal is applied to the base of bias transistor N53, the current mirror is shut off. Transistor N53 is off thereby depriving the discharging transistor N55 and the mirror transistor N52 of any base drive current. This removes the negative feedback of the differential amplifier effectively disconnecting the amplifier from the capacitor voltage. The capacitor can now be charged.

When the discharge signal is present, bias transistor N53 is on. Base drive current is thus provided to the current mirror. The differential amplifier is initially imbalanced with the ramp pin voltage at the base of transistor P17 higher than the reference clamp voltage at the base of transistor P15. Most of the current from current source P16 flows through transistor P15. This current is mirrored through discharging transistor N55 which pulls the current from the external capacitor and the charging current source. The capacitor continues to discharge until the amplifier reaches the balanced state. In the embodiment of FIG. 13, the upper limit of the capacitor is clamped by a PNP clamp including transistor N58 and transistor P21. The base of transistor N58 is fed with a fixed regulated voltage of 3.5 volts. The base of transistor P21 is down 1 Vbe from the 3.5 volts. The emitter of transistor P21 is up 1 Vbe from the base of transistor P21 setting the upper limit of the capacitor at 3.5 volts.

By including the PNP clamp, transistor P21 would provide a path from the ramp pin to ground during startup before the 3.5 volt reference is established. Since the ramp pin is doubling as a sleep pin, P21 would then hold the integrated circuit in sleep mode forever. To avoid this problem, transistor N59 is inserted between transistor P21 and ground to disable the PNP clamp when Vreg has not yet been established. The PNP clamp is not allowed to be grounded until Vreg turns transistor N59 on through resistor R66.

The present embodiment provides a "jump start" for the capacitor charging cycle. When the discharge signal goes low, the Jstart signal goes high. Jstart goes high faster than the discharge signal goes low. The Jstart signal varies between a high of 2.6 volts and a low of 2.1 volts. When Jstart goes high, transistor N51 turns on providing current through resistor R55 to initially charge the capacitor. Transistor N51 is turned off shortly thereafter when the voltage at its emitter goes higher than its base. Thereafter, the current source including transistor P18 provides the charging current for the ramp capacitor.

Transistors N54 and N56 provide a buffer to separate the external ramp pin from the internal circuitry. The ramp pin is connected to the emitter of transistor N54. The emitter of transistor N56 provides a buffered version of the capacitor voltage for use in the integrated circuit logic. The current in the current source P18 is mirrored from the current through transistor P20. The current through transistor P20 is determined by the Vbe multiplier made up of transistor N57 and resistor R64 and R65. The trim resistors R71, R72, R73, R74, R75 and R76 further contribute to the current in the current source. The trim resistors provide a means for adjusting the current to get the desired value.

Totem Pole Driver

Referring now to FIGS. 14 and 15, the totem pole driver will be described. The totem pole driver includes a bottom output transistor N62 and a top output transistor N60. In the embodiment shown, in which the output transistors are NPN bipolar transistors, the top output transistor N60 has a collector connected to the main voltage supply V_(c). The acceptable operating range for a V_(c) in the present embodiment for use in a secondary side post regulator controller is from 8V. to 75V. The top output transistor N60 has an emitter which is connected to the collector of the bottom output transistor N62. The emitter of the bottom output transistor N62 is connected to power ground. When the totem pole driver is used in a secondary side post regulator controller to drive a FET, the totem pole output at the emitter of the top output transistor N60 is connected to the gate of the FET.

The totem pole driver has two signals for controlling the switching of the output transistors. The inputs include a switching signal TON derived from the GON signal output of comparator 150 and a sync signal known to lead the switching signal. In accordance with the embodiment of a secondary side post regulator controller, the sync signal is derived from the secondary pulse V_(sy). The secondary pulse is used to alternately enable charging and discharging of an external timing capacitor connected to the comparator 150 for generating the switching signal. On the leading edge of the sync signal, the capacitor begins to charge until it crosses an error control input on the comparator 150 at which point the comparator 150 switches the switching signal. At the falling edge of the sync signal, the capacitor begins to discharge. Discharge of the capacitor cannot take place instantaneously. Resetting of the comparator 150 is prevented until the capacitor has been discharged. Thus, there is a delay following the falling edge of the sync signal until the comparator is reset. Therefore, the sync signal is known to lead the switching signal. The totem pole driver takes advantage of this known leading signal to prevent cross conduction current in the totem pole output.

The switching signal proceeds through a first circuit path in the totem pole driver to switch the bottom output transistor on or off. A first circuit path for controlling the switching of the bottom output transistor N62 can be found through pass transistor N89, resistor R94, resistor R96, a sink transistor N70 and a base drive transistor N66. The sink transistor N70 may also be called a bottom switch transistor. The base drive transistor N66 has a base coupled to the regulated circuit voltage Vreg, a collector connected to the collector of the bottom output transistor and an emitter connected to the base of the bottom output transistor N62. The sink transistor N70 has a collector connected to the base of the base drive transistor N66 and an emitter connected to ground. The base of the sink transistor N70 is coupled to the pass transistor N89 through resistors R96 and R94. which reduce the amount of current used up by the sink transistor. The pass transistor N89 receives the switching signal from the comparator 150. The pass transistor N89 has a collector connected to the regulated circuit voltage Vreg. Thus, the proper switching operation of this circuit path relies upon the existence of a sufficient voltage on Vreg. When the sink transistor N70 is on in response to the switching signal, it pulls the base drive transistor N66 to ground shutting off base drive current to the bottom output transistor N62, thus shutting off the base drive transistor and the bottom output transistor. When the switching signal stops providing base current to sink transistor N70, the base drive transistor N66 and the bottom output transistor N62 are both on. The base drive transistor N66 and the bottom output transistor N62 are both pulling current from the totem pole output, in other words from the gate of the FET. Thus, the base drive transistor and the bottom output transistor act as a Darlington pair.

An alternate optional first circuit path, shown in the embodiment of FIG. 14 passes through resistor R78 to a bottom switch transistor N68. The bottom switch transistor N68 has a collector connected to the base of the bottom output transistor and an emitter connected to ground. The base of the bottom switch transistor N68 receives the switching signal. The resistor R78 reduces the amount of current used by bottom switch transistor N68. This alternate first circuit path may be used in addition to the first circuit path through sink transistor N70.

The output stage operates on current provided by current sources P27, P28, P29 and P30. The current from transistor P27 is provided to a current mirror formed by transistors N83 and N85. The collector of transistor N85 is connected to the base of the bottom output transistor N62 and the emitter of the base drive transistor N66. The constant current sink of transistor N85 helps to speed up the switching off of bottom output transistor N62. In addition, this current leakage path through transistor N85 adds a delay to switching on bottom output transistor N62. The permanent leakage path through transistor N85 requires that the bottom base drive transistor N66 have a substantial current in it before it actually turns on the bottom output transistor N62.

The totem pole driver includes a second circuit path for using the switching signal to switch the top output transistor on after the bottom output transistor is switched off. A time delay is provided along the second circuit path to avoid the cross conduction problem. The second circuit path includes pass transistor N90, resistor R95, the delay transistor N72 and a top switch transistor N74. Referring first to the top switch transistor N74, it has an emitter connected to ground, a collector connected to a supplier of base drive current (top base drive transistor N64) to the top output transistor N60 and a base connected to the collector of the delay transistor N72. The base of the delay transistor N72 is also coupled to the switching signal. The resistor R95 reduces the amount of current carried by the switching signal to the base of the delay transistor. The emitter of delay transistor N72 is connected to ground and the collector of the delay transistor is coupled to the regulated circuit voltage Vreg.

Current from the main power voltage supply VC for driving the top base drive transistor N64 is provided by a top side current mirror including transistors P31 and P32. Resistors R99 and R100 act as simple degeneration resistors. The top switch transistor N74 acts to turn this current on or off to the top base drive transistor N64. When the top switch transistor N74 is on, the base of the top base drive transistor N64 is pulled to ground, shutting off base current to the top output transistor N60. The top base drive transistor N64 and the top output transistor N60 are arranged as a Darlington pair. The delay in getting the top switch transistor N74 to react to the switching signal imposed by transistor N72 can be increased by providing capacitors at the base of transistor N72. In the embodiment of FIG. 15, three optional capacitors, C8, C9 and C10, are shown for providing some additional propagation delay. The presently preferred embodiment includes a gain limiting leakage resistor R103 for the top output transistor N60. The leakage resistor of the preferred embodiment is 10K Ohms.

Despite the delay in shutting off the bottom output transistor N62 caused by the leakage current through transistor N85, top base drive transistor N64 is too slow to first turn off the top output transistor N60 in response to a signal from comparator 150. In order to turn off the top output transistor before the bottom output transistor N62 turns on, a third circuit path is provided between the top output transistor N60 and a sync signal. The sync signal TOPON is derived directly from and is in phase with SYNC in the presently preferred embodiment. The sync signal--known to lead the switching signal--is provided in the present embodiment through a conductive path to the base of the base drive transistor N64. Thus, when the sync signal TOPON is low, the base drive transistor N64 is shut off shutting off drive current to the top output transistor N60. The switching signal then through the first circuit path turns the bottom output transistor N62 on. Since the SYNC signal is also responsible for initiating the discharge of the timing capacitor, the totem pole driver takes advantage of the delay between enabling the discharge of the timing capacitor and the resetting of the comparator 150 by the flip-flop like circuit 152 which, in turn, resets the switching signal.

In the event that the circuit loses power and there is no regulated circuit voltage Vreg, it is desirable that the totem pole output assume a low impedance state to ground. The objective is to shunt current away from any device on the output, such as the FET, to prevent such a device from burning out due to excessive current in a situation when the circuit has lost control. This safe failure mode is achieved by providing an emergency voltage supply. Such a voltage supply needs to be reliable and exist regardless of whether power is being provided to the integrated circuit chip. In the presently preferred embodiment of a secondary side post regulator controller, the emergency voltage supply is the drain pin of the FET device connected to the output of the totem pole driver. Thus, the emergency voltage supply shown in the drawings and indicated as VD, the drain pin of the FET, alternatively is shown as VALT which may be any reliable emergency supply. The drain pin is particularly useful since any time the FET is threatened by a voltage on its drain, that voltage itself is used to supply the protection circuitry.

The emergency voltage supply is provided through a transistor connected as a diode N81. The diode N81 is reverse biased to prevent current from going into the FET, when the drain pin of the FET is at a low impedance. A resistor (not shown) may also be included between the drain of the FET and the diode N81 to help limit the current. A fourth circuit path connects the emergency voltage to the base of the top switch transistor N74. Thus, when Vreg is turned off or removed from the circuit, the top switch transistor N74 is held on to pull the top base of the base drive transistor N64 to ground. This holds off the top output transistor N60. The fourth circuit path in the embodiment of FIG. 15 includes transistor N82 arranged as a diode and resistor R89. Transistor N82 acts as a level shifting device. Resistor R89 provides current limiting to the base of top switch transistor N74 when the drain of the FET goes high.

A fifth circuit path is provided so that the emergency voltage may hold the bottom output transistor on. In the embodiment of FIG. 15, this fifth path includes resistor R90 and base drive transistor N66. Resistor R90 provides current limiting to the base of the base drive transistor N66 when the drain of the FET goes high. A sink transistor N70 is also connected to the fifth circuit path. The sink transistor N70 shuts down this fifth circuit path when it is not desired to have the base drive transistor N66 on. In an emergency situation, the voltage from the emergency voltage supply is provided to the base of the base drive transistor N66 so that it and the bottom output transistor N62 are both conducting.

In the presently preferred embodiment, it is desired to prevent the FET from turning on due to drain to gate leakage current. To perform this function, a resistor R101 is connected between a diode N94 and ground. The resistor R101 is a leakage resistor that satisfies the function of preventing the FET from turning on due to drain to gate leakage current. Resistor R101 is a 50K Ohm resistor in the presently preferred embodiment. The transistors N93 and N94 are configured as diodes. Transistor N93 is connected between the emitter and base of top base drive transistor N64. Transistor N94 is connected between the emitter and base of top output transistor N60. These diodes prevent the top base drive transistor N64 and the top output transistor N60 from breaking down during a reverse bias condition.

The circuit operation will now be described. When the circuit is inactive due to a fault condition or simply prior to powering up, the secondary pulse V_(sy) is alive. This energy appears at the drain of the external FET which serves also as the emergency voltage supply at VALT. The emergency voltage supply through the fifth circuit path holds the Darlington pair of the bottom output transistor N62 and its base drive transistor N66 on to provide a path for the current in the FET gate source capacitor. The fourth circuit path holds the top output transistor N60 off.

As the supply voltage rises above the undervoltage lockout threshold of the integrated circuit chip, the circuit becomes active and Vreg turns on. Vreg is 5 volts in the present embodiment. The rising edge of the sync signal SYNC initiates the charging of the ramp capacitor. In this interval, a sync signal transistor N80 is turned off leaving the sync signal high at the base of the base drive transistor N64. As the ramp voltage on the capacitor crosses the error control signal, the switching signal from the comparator 150 goes high. The switching signal high state is latched by the flip-flop like circuit 152. This switching signal is delayed through the second circuit path. Propagation through the second circuit path requires turning on delay transistor N72 and charging of the collector capacitance on the top switch transistor N74. The delay in turning on the delay transistor N72 may be increased by providing any of the capacitors C8, C9 and C10. The bottom output transistor N62 is turned off first through the first circuit path including the bottom switch transistor N70. The top output transistor N60 is then turned on through the second circuit path.

Upon the occurrence of the falling edge of the sync signal SYNC, the discharge of the ramp capacitor is initiated. The drop in the sync signal, which in this application is also connected to the drain of the external FET, causes the voltage on the gate of the FET to also drop sharply. For a very brief time, the top output transistor N60 is held on, but the falling edge of the sync signal also turns on sync signal transistor N80 providing a low signal which immediately turns off the supply of base drive current from base drive transistor N64 to the top output transistor N60, thereby turning off the top output transistor. The ramp capacitor discharges and reaches the point at which the latch for the comparator resets and the switching signal goes low. At this point, the first circuit path turns on the bottom output transistor N62. This discharges the gate source capacitor of the FET and the gate is forced low.

If at any point the integrated circuit's supply voltage Vcc is removed or Vreg is shorted to ground, the emergency voltage supply directs a portion of the secondary energy from the drain of the external FET to put the totem pole driver in a state keeping the gate of the FET at a low impedance. In other words, the bottom output transistor is held on and the top output transistor is held off. By bringing the base of top base drive transistor N64 to ground in a fault situation, the output transistors can withstand a higher breakdown voltage on voltage supply VC. This extends the range of VC that can be permitted during a fault mode.

Transistor N74 provides AC coupling to ground in the event of a high supply transient on the main voltage supply VC.

Some additional circuits contained within the switch with programmable delay 10 are also illustrated in the drawings. FIG. 16 shows the comparator COMP6 for generating the VregOK fault protection signal. FIG. 17 shows a current sense amplifier EA2 for use in the programmable delay switch 10 of the presently preferred embodiment. FIG. 18 illustrates some of the sync logic circuitry including comparator COMP2.

The embodiments of the inventions are intended to be merely exemplary and numerous variations and modifications will be apparent to those skilled in the art. All such variations and modifications are intended to be within the scope of the present invention as defined in the appended claims. 

We claim:
 1. An integrated circuit comprising:a ramp pin for connection to an external capacitor; a comparator connected to receive a voltage from said ramp pin to compare the ramp pin voltage to a control voltage; Vcc means for receiving a supply voltage; a regulator connected to said Vcc means for generating a regulated voltage; a current source, connected to said regulated voltage, for supplying charging current to said ramp pin; and a sleep switch, connected to said ramp pin so as to be activated when said ramp pin is below a predetermined voltage threshold, for putting said integrated circuit into a low power consumption sleep mode when said sleep switch is activated by said ramp pin falling below the predetermined voltage threshold.
 2. The integrated circuit of claim 1 wherein said sleep switch disables said regulator and said current source when putting said integrated circuit into the low power consumption sleep mode.
 3. The integrated circuit of claim 1 wherein said sleep switch comprises a transistor having an emitter connected to said ramp pin, a collector and a base clamped above one semiconductor junction voltage drop above ground.
 4. The integrated circuit of claim 3 further comprising at least two semiconductor junctions connected in series between said Vcc means and ground and wherein the base of said transistor is connected between said Vcc means and said at least two semiconductor junctions so that the base of said transistor is clamped at least two semiconductor junction voltage drops above ground.
 5. The integrated circuit of claim 4 further comprising an undervoltage lockout circuit and a bias current path between said undervoltage lockout circuit and ground, said bias current path being connected in parallel with the base and emitter of said transistor and wherein said undervoltage lockout circuit is shut off when the base of said transistor falls below the predetermined voltage threshold shutting off current flow through said bias current path.
 6. The integrated circuit of claim 4 further comprising a discharging transistor connected to said ramp pin and a discharge clamp to prevent the discharging transistor from pulling the external capacitor below a minimum clamped voltage, the minimum clamped voltage being greater than two semiconductor voltage drops above ground.
 7. An integrated circuit comprising:Vcc means for receiving a supply voltage; an undervoltage lockout circuit for enabling said integrated circuit when the supply voltage rises above a first threshold and for disabling said integrated circuit when the supply voltage falls below a second threshold; a first semiconductor junction connected to ground; a transistor having a base coupled to said Vcc means, an emitter coupled through said first semiconductor junction to ground and a collector connected to said undervoltage lockout circuit; a sleep pin; and a second semiconductor junction connected between the base of said transistor and said sleep pin so that, when said sleep pin is forced below a predetermined voltage threshold, current is prevented from flowing through the collector of said transistor so as to disable said undervoltage lockout circuit thereby disabling said integrated circuit.
 8. The integrated circuit of claim 7 further comprising at least two semiconductor junctions connected in series between the base of said transistor and ground such that, when said integrated circuit is disabled upon said sleep pin being forced below the predetermined threshold, substantially all current from said Vcc means flows through said at least two semiconductor junctions.
 9. The integrated circuit of claim 7 wherein said sleep pin is a multifunction pin for said integrated circuit.
 10. The integrated circuit of claim 7 further comprising a regulator, connected to said Vcc means, for supplying a regulated voltage on said integrated circuit when enabled by said undervoltage lockout circuit.
 11. The integrated circuit of claim 10 further comprising a current source, connected to said regulator, for charging an external capacitor through said sleep pin.
 12. The integrated circuit of claim 11 further comprising a comparator connected to receive a voltage from said sleep pin for comparing the voltage on said sleep pin to a control voltage.
 13. The integrated circuit of claim 11 further comprising a discharging transistor connected to said sleep pin and a discharge clamp to prevent the discharging transistor from pulling the external capacitor below a minimum clamped voltage, the minimum clamped voltage being greater than the predetermined voltage threshold.
 14. An integrated circuit with undervoltage lockout comprising:supply terminal means for receiving a supply voltage; a detection leg connected between said supply terminal means and ground; a current supply connected to said supply terminal means; and a differential comparator responsive to a detection voltage across a resistive portion of said detection leg for enabling said current supply when the detection voltage rises past a first threshold.
 15. The integrated circuit of claim 14 wherein said detection leg includes a series of diodes so that substantially no current flows in said integrated circuit until the supply voltage exceeds the combined semiconductor junction voltages of said diodes.
 16. The integrated circuit of claim 14 wherein said differential comparator further includes hysteresis for disabling said current supply when the detection voltage falls below a second threshold.
 17. The integrated circuit of claim 16 wherein a difference between an enable voltage threshold on said supply terminal means, at which said hysteretic differential comparator enables said current supply, and a disable voltage threshold on said supply terminal means, at which said hysteretic differential comparator disables said current supply, is substantially temperature independent.
 18. The integrated circuit of claim 16 wherein said differential comparator comprises a plurality of transistors and wherein the first threshold and the second threshold are each functions of emitter area ratios defined by said plurality of transistors.
 19. The integrated circuit of claim 14 further comprising a bias current transistor having a base connected to said detection leg, a collector connected to said differential comparator and an emitter coupled to ground so as to disable said comparator and said current supply when said bias current transistor is shut off.
 20. The integrated circuit of claim 19 further comprising a sleep transistor having a collector, a base connected to the base of said bias current transistor and an emitter connected to a sleep pin so that when said sleep pin is forced below a predetermined voltage threshold, current is prevented from flowing through the collector of said bias current transistor so as to disable said differential comparator thereby putting said integrated circuit into a low power consumption sleep mode.
 21. The integrated circuit of claim 20 further comprising a comparator for comparing the voltage on said sleep pin with a control voltage.
 22. The integrated circuit of claim 20 further comprising means for clamping the base of said sleep transistor at a voltage more than one semiconductor junction voltage above the predetermined voltage threshold.
 23. The integrated circuit of claim 14 wherein said differential comparator comprises a first transistor having a base connected to one end of the resistive portion of said detection leg, a collector and an emitter and a second transistor having a base connected to a second end of the resistive portion of said detection leg, an emitter connected to the emitter of said first transistor and a collector.
 24. The integrated circuit of claim 23 wherein said differential comparator further comprises a third transistor having a base connected to the base of said second transistor, an emitter connected to the emitter of said second transistor and a collector.
 25. The integrated circuit of claim 24 further comprising means, connected to the collector of the third transistor, for providing current to the collector of the third transistor from one of a first and second current path, the first current path being coupled to the collector of said first transistor and the second current path being coupled to the collector of said second transistor.
 26. The integrated circuit of claim 25 wherein said means for providing current to the collector of the third transistor comprises a latch for providing current from the first current path when the detection voltage rises above the first threshold and for providing current from the second current path when the detection voltage falls below the second threshold.
 27. The integrated circuit of claim 25 wherein said detection leg includes a diode and said integrated circuit further comprises a transistor connected in parallel with said diode and having a base connected to said current supply in such a manner that said transistor provides a short around said diode when the current supply is conducting.
 28. An integrated circuit with undervoltage lockout comprising:supply terminal means for receiving a supply voltage; a detection leg connected between said supply terminal means and ground, said detection leg including a series of diodes so that substantially no current flows in said detection leg until the supply voltage exceeds the combined semiconductor junction voltages of said diodes; a current supply connected to said supply terminal means; and a hysteretic differential comparator responsive to a detection voltage across a portion of said detection leg for enabling said current supply when the detection voltage rises past a first threshold and for disabling said current supply when the detection voltage falls below a second threshold.
 29. The integrated circuit of claim 28 wherein a difference between an enable voltage threshold on said supply terminal means, at which said hysteretic differential comparator enables said current supply, and a disable voltage threshold on said supply terminal means, at which said hysteretic differential comparator disables said current supply, is substantially temperature independent.
 30. The integrated circuit of claim 28 further comprising a transistor having an emitter connected to the supply voltage, a collector connected to said detection leg and a base connected to said current supply in such a manner that said transistor provides a short around at least one of the diodes in the series of diodes in said detection leg when said current supply is conducting.
 31. The integrated circuit of claim 28 further comprising a bias current transistor having a base connected to said detection leg, a collector connected to said hysteretic differential comparator and an emitter coupled to ground so as to disable said comparator and said current supply when said bias current transistor is shut off.
 32. The integrated circuit of claim 31 further comprising a sleep transistor having a collector, a base connected to the base of said bias current transistor and an emitter connected to a sleep pin so that when said sleep pin is forced below a predetermined voltage threshold, current is prevented from flowing through the collector of said bias current transistor so as to disable said hysteretic differential comparator thereby disabling said integrated circuit.
 33. The integrated circuit of claim 32 further comprising a comparator for comparing the voltage on said sleep pin with a control voltage.
 34. The integrated circuit of claim 32 further comprising means for clamping the base of said sleep transistor at a voltage more than one semiconductor junction voltage above the predetermined voltage threshold.
 35. The integrated circuit of claim 28 wherein said hysteretic differential comparator comprises a first transistor having a base connected to one end of the portion of said detection leg, a collector and an emitter and a second transistor having a base connected to a second end of the portion of said detection leg, an emitter connected to the emitter of said first transistor and a collector.
 36. The integrated circuit of claim 35 wherein said hysteretic differential comparator further comprises a third transistor having a base connected to the base of said second transistor, an emitter connected to the emitter of said second transistor and a collector.
 37. The integrated circuit of claim 36 wherein the first threshold and the second threshold are each a function of ratios of emitter areas of the emitters of the first, second and third transistors.
 38. The integrated circuit of claim 36 wherein said hysteretic differential comparator further comprises means, connected to the collector of the third transistor, for providing current to the collector of the third transistor from one of a first and second current path, the first current path being coupled to the collector of said first transistor and the second current path being coupled to the collector of said second transistor.
 39. The integrated circuit of claim 38 wherein said means for providing current to the collector of the third transistor comprises a latch for providing current from the first current path when the detection voltage rises above the first threshold and for providing current from the second current path when the detection voltage falls below the second threshold.
 40. A hysteretic differential comparator comprising:a first transistor having a base for receiving a first input, a collector and an emitter; a second transistor having a base for receiving a second input, an emitter connected to the emitter of said first transistor and a collector; and a third transistor having a base connected to the base of said second transistor, an emitter connected to the emitter of said second transistor and a collector; and means, connected to the collector of the third transistor, for providing current to the collector of the third transistor from one of a first current path and a second current path, the second current path being coupled to the collector of said second transistor to set a first threshold voltage difference between the first and second inputs and the first current path being coupled to the collector of said first transistor to set a second threshold voltage difference between the first and second inputs.
 41. The hysteretic differential comparator of claim 40 wherein said means for providing current to the collector of the third transistor comprises a latch for providing current from the first path when the voltage difference between the first input and the second input rises above the first threshold and for providing current from the second current path when the voltage difference between the first input and second input falls below the second threshold.
 42. The hysteretic differential comparator of claim 40 further comprising a current steering comparator connected to said means for providing current so as to provide an output from said hysteretic differential comparator.
 43. The hysteretic differential comparator of claim 40 wherein the first threshold voltage difference and the second threshold voltage difference are each a function of emitter area ratios determined by said first, second and third transistors.
 44. An integrated circuit comprising:a ramp pin for connection to an external capacitor; a comparator connected to receive a voltage from said ramp pin to compare the ramp pin voltage to a control voltage; Vcc means for receiving a supply voltage; a regulator connected to said Vcc means for generating a regulated voltage; and a sleep switch, connected to said ramp pin so as to be activated when said ramp pin is below a predetermined voltage threshold, for putting said integrated circuit into a low power consumption sleep mode when said sleep switch is activated by said ramp pin falling below the predetermined voltage threshold.
 45. The integrated circuit of claim 44 wherein said sleep switch comprises a transistor having an emitter connected to said ramp pin, a collector and a base clamped above one semiconductor junction voltage drop above ground.
 46. The integrated circuit of claim 44 wherein said sleep switch disables said regulator when putting said integrated circuit into the low power consumption sleep mode. 